package com.sxit.tdf.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sxit.tdf.server.entity.Professional;
import com.sxit.tdf.server.entity.bo.ProfessionalInfoBo;
import com.sxit.tdf.server.entity.bo.SimpleProfessionalBo;
import com.sxit.tdf.server.entity.vo.SiftProfessionalInfoVo;

import java.util.List;

public interface IProfessionalService extends IService<Professional> {

  /**
   * 获取所有的简易的专业接口
   *
   * @return
   */
  List<SimpleProfessionalBo> getSimpleProfessionalList();

  /**
   * 获取专业信息
   *
   * @return
   */
  IPage<ProfessionalInfoBo> getProfessionalList(SiftProfessionalInfoVo professionalInfoVo);

  /**
   * 通过Id删除数据
   *
   * @param id
   * @return
   */
  Boolean deleteByid(int id);

  /**
   * 通过部门查询专业
   *
   * @param dept
   */
  List<SimpleProfessionalBo> getProfessionalByDeptId();
}
